package com.xyx.ssm.jdbcdao;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

@Repository
public class  WinebrandDao extends BaseDao {
   public int winebrandadd(Map<String,Object> map){
	   
	int num   =sqlSession.insert("com.xyx.ssm.jdbcdao.winebrandDao.winebrandadd", map);
	   
	   return num;
   }
	
   
   public Map<String,Object> selectbyid(Map<String, Object> map) {
List<Map<String,Object>>	list=   sqlSession.selectList("com.xyx.ssm.jdbcdao.winebrandDao.selectByid", map);
		
		return list.get(0);
	}
}